<layout name="page" />
<block name="content">
{:widget('page_header/adv_search',array('name'=>'日程搜索','search'=>'M'))}
<form method="post" name="form_adv_search" id="form_adv_search">
	<div class="adv_search panel panel-default  hidden"  id="adv_search">
		<div class="panel-heading">
			<div class="row">
				<h4 class="col-xs-6">高级搜索</h4>
				<div class="col-xs-6 text-right">
					<a  class="btn btn-info" id="submit_adv_search">搜索</a>
					<a  class="btn " id="close_adv_search">关闭</a>
				</div>
			</div>
		</div>
		<div class="x-panel-body">
			
				<label class="input-label" for="li_name">标题：</label>
				
					<input  class="input" type="text" id="li_name" name="li_name" >
				</div>
			</div>

			
				<label class="input-label" for="li_content">内容：</label>
				
					<input  class="input" type="text" id="li_content" name="li_content" >
				</div>
			</div>

			
				<label class="input-label" for="eq_user_name">登录人：</label>
				
					<input  class="input" type="text" id="eq_user_name" name="eq_user_name" >
				</div>
			</div>

			
				<label class="input-label" for="be_start_date">登录时间：</label>
				
					<div class="input-daterange input-group" >
					    <input type="text" class="input-sm input text-center" name="be_start_date" value="{$start_date}" readonly="readonly"/>
						<span class="input-group-addon">-</span>
						<input type="text" class="input-sm input text-center" name="en_end_date" value="{$end_date}" readonly="readonly"/>
					</div>
				</div>
			</div>
		</div>
	</div>
</form>
<div class="ul-table">
	<ul>
		<li class="thead">
			<span class="col-9 pull-right">结束时间</span>
			<span class="col-9 pull-right">开始时间</span>
			<span class="col-18 pull-right">地点</span>
			<div class="auto ">
				标题
			</div>
		</li>
		<if condition="!empty($list)">
			<ul>
				<li class="no-data">
					没找到数据
				</li>
				<else/>
				<form method="post" action="" id="form_data">
					<foreach name="list" val="vo">
						<li class="tbody" priority="{$vo.priority}">
							<span class="col-9 pull-right text-center">{$vo.end_date}</span>
							<span class="col-9 pull-right text-center">{$vo.start_date}</span>
							<span class="col-18 pull-right text-center">{$vo.location}&nbsp;</span>
							<div class="auto ">
								<a href="{:url('read2','id='.$vo['id'])}"> {$vo.name}
								<eq name="vo.name|strlen" value="0">
									无标题
								</eq> </a>
							</div>
						</li>
					</foreach>
				</form>
				<div class="pagination">
					{$page}
				</div>
			</ul>
		</if>
</div>
</block>
<block name="js">
<script type="text/javascript">
	$(document).ready(function(){
		set_return_url(null);
		$(function() {
			$("li.tbody").each(function() {
				$(this).css("background-color", schedule_bg($(this).attr("priority")));
			});
		});
	}); 
</script>
</block>